package com.chang.mapper;

import com.chang.bean.ProductCategory;
import com.chang.common.crud.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * @program: erp-api
 * @description:
 * @author: chang
 * @create: 2025-02-26 15h
 **/
@Mapper
public interface ProductCategoryMapper extends BaseMapper<ProductCategory> {
    /**
     * 根据pid查询最大编码
     * @param pid
     * @return
     */
    String queryMaxCode(int pid);

    /**
     * 根据类型查询编码
     * @param id
     * @return
     */
    String queryCode(int id);

}
